/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rational.sheet.table.cell.model.setting;

import javax.swing.JLabel;

/**
 *
 * @author Overmind
 */
public interface FormatConstants
{
    public interface Coded
    {
	public int getCode();
    }
    
    enum VerticalAlignment
	implements Coded
    {
	TOP(JLabel.TOP),
        CENTER(JLabel.CENTER),
        BOTTOM(JLabel.BOTTOM);
	
	private int code;
	
	private VerticalAlignment(int code)
	{
	    this.code = code;   
	}
	
	public int getCode()
	{
	    return code;
	}
    }
    
    public enum HorizontalAlignment
	implements Coded
    {
	LEFT(JLabel.LEFT),
        CENTER(JLabel.CENTER),
        RIGHT(JLabel.RIGHT);
	
	private int code;
	
	private HorizontalAlignment(int code)
	{
	    this.code = code;   
	}
	
	public int getCode()
	{
	    return code;
	}
    }
    
    
}
